package com.google.fbyoutube.client.widget;

import com.google.fbyoutube.shared.ytVideoEntry;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class PalWatchVideo extends Composite {

	public PalWatchVideo(ytVideoEntry video) {
		
		DockPanel dockPanel = new DockPanel();
		dockPanel.setBorderWidth(0);
		initWidget(dockPanel);
		
		widUserOwnVideo = new WidUserOwnVideo(video);
		dockPanel.add(widUserOwnVideo, DockPanel.NORTH);
		
		widRelVIdeoList = new WidRelVIdeoList(video);
		dockPanel.add(widRelVIdeoList, DockPanel.EAST);
		
		VerticalPanel verticalPanel = new VerticalPanel();
		verticalPanel.setStyleName("nocellspace");
		dockPanel.add(verticalPanel, DockPanel.CENTER);
		
		widVideoBox = new WidVideoBox(video);
		verticalPanel.add(widVideoBox);
		
		widComList = new WidComList(video);
		widComList.setStyleName("userComLayout");
		verticalPanel.add(widComList);
	}
	
	private WidComList widComList;
	private WidVideoBox widVideoBox;
	private WidRelVIdeoList widRelVIdeoList;
	private WidUserOwnVideo widUserOwnVideo;

}
